import request from '@/utils/request'

// 查询行程库模块列表
export function listItineraries(query) {
  return request({
    url: '/system/itineraries/list',
    method: 'get',
    params: query
  })
}

// 查询行程库模块详细
export function getItineraries(id) {
  return request({
    url: '/system/itineraries/' + id,
    method: 'get'
  })
}

// 新增行程库模块
export function addItineraries(data) {
  return request({
    url: '/system/itineraries',
    method: 'post',
    data: data
  })
}

// 修改行程库模块
export function updateItineraries(data) {
  return request({
    url: '/system/itineraries',
    method: 'put',
    data: data
  })
}

// 删除行程库模块
export function delItineraries(id) {
  return request({
    url: '/system/itineraries/' + id,
    method: 'delete'
  })
}
